package com.sxb.spike.controller;


import com.sxb.spike.pojo.User;
import com.sxb.spike.rabbitmq.MQReceiver;
import com.sxb.spike.rabbitmq.MQSender;
import com.sxb.spike.vo.RespBean;
import com.sxb.spike.vo.RespBeanEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shenxiaobai
 * @since 2023-06-05
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private MQSender mqSender;

/*    *//**
     * 用户信息测试
     * @param user
     * @return
     *//*
    @RequestMapping("/info")
    @ResponseBody
    public RespBean info(User user) {
        return RespBean.success(user);
    }*/

/*    *//**
     * 测试发送 rabbitmq 消息
     *//*
    @RequestMapping("/mq/header01")
    @ResponseBody
    public void mq01() {
        mqSender.send01("Hello, header01");
    }
    @RequestMapping("/mq/header02")
    @ResponseBody
    public void mq02() {
        mqSender.send02("Hello, header02");
    }*/
}
